﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true" CodeBehind="MClaDel.aspx.cs" Inherits="WebSystem.MClaDel" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
        .auto-style2 {
            height: 20px;
        }
        .auto-style3 {
            height: 37px;
        }
        .auto-style4 {
            height: 20px;
            text-align: right;
            width: 326px;
        }
        .auto-style5 {
            height: 20px;
            width: 176px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
    <br />
    <br />
    <table class="auto-style1">
        <tr>
            <td>
                <br />
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <table class="auto-style1">
                    <tr>
                        <td class="auto-style3" colspan="3" style="text-align: center">
        <asp:Button ID="Button10" runat="server" OnClick="Button4_Click" Text="增加课程" />
&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button11" runat="server" OnClick="Button5_Click" Text="删除课程" />
&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button12" runat="server" OnClick="Button6_Click" Text="修改课程" />
&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button13" runat="server" OnClick="Button7_Click" Text="显示课表" />
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style3" colspan="3" style="text-align: center">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style3" colspan="3" style="text-align: center">
                            <asp:Label ID="Label1" runat="server" Font-Size="XX-Large" Text="删除课程"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style4">
                            <asp:Label ID="Label2" runat="server" Text="输入课程号"></asp:Label>
                        </td>
                        <td class="auto-style5">
                            <asp:TextBox ID="txtCno" runat="server"></asp:TextBox>
                        </td>
                        <td class="auto-style2">
                            <asp:Button ID="btnDel" runat="server" OnClick="btnDel_click" style="height: 21px" Text="确定" />
&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="lblInfo" runat="server" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style4"></td>
                        <td class="auto-style5">
                            <br />
                            <asp:GridView ID="GridView1" runat="server" OnSelectedIndexChanged="btnDel_click" AutoGenerateColumns="False" DataKeyNames="Cno,Tno" DataSourceID="SqlDataSource1">
                                <Columns>
                                    <asp:BoundField DataField="Cno" HeaderText="课程编号" ReadOnly="True" SortExpression="Cno" />
                                    <asp:BoundField DataField="Cname" HeaderText="课程名称" SortExpression="Cname" />
                                    <asp:BoundField DataField="Credit" HeaderText="学分" SortExpression="Credit" />
                                    <asp:BoundField DataField="Tno" HeaderText="教师编号" ReadOnly="True" SortExpression="Tno" />
                                </Columns>
                            </asp:GridView>
                            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dhd2014115121ConnectionString %>" SelectCommand="SELECT * FROM [Course]"></asp:SqlDataSource>
                        </td>
                        <td class="auto-style2"></td>
                    </tr>
                </table>
            </td>
            <td>&nbsp;</td>
        </tr>
        </table>
    <p>
        <br />
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
</asp:Content>
